home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19990422-19990725 / 000120_news@watsun.cc.columbia.edu _Mon May 31 18:23:37 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  3KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA25347
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 31 May 1999 18:23:37 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA16539
  7.     for kermit.misc@watsun.cc.columbia.edu; Mon, 31 May 1999 18:20:41 -0400 (EDT)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: "Joe H. Gallagher" <dtrwiz@ix.netcom.com>
  10. Subject: timing problems
  11. Date: Mon, 31 May 1999 18:17:39 -0400
  12. Organization: Netcom
  13. Message-ID: <37530A82.194A@ix.netcom.com>
  14. To: kermit.misc@watsun.cc.columbia.edu
  15.  
  16. Following is two examples of K95 script code which work on a 
  17. slower processor, but fail to work on a faster processor.
  18.  
  19. Example #1
  20.  
  21. Sending three <CR> to wake up a VAX thru a DECserver 700 to
  22. start the login process.
  23.  
  24. The following code worked on a 175 Megahertz processor, but would
  25. NOT work on a faster processor.
  26.  . . .
  27. :LOOP1
  28. clear
  29. message {Requesting username prompt...}
  30. output \13\13\13
  31. input 2 Username:
  32. if success goto HAVEUSERNAME
  33. goto LOOP1
  34. :HAVEUSERNAME
  35. message {Logging in . . . }
  36. output \%a\13        ; send username
  37. output \%p\13        ; send password
  38.  
  39. The faster processor required code like:
  40.  . . .
  41. :LOOP1
  42. clear
  43. message {Requesting username prompt...}
  44. output \13
  45. message {Synchronizing .}
  46. output \13
  47. message {Synchronizing . .}
  48. output \13
  49. message {Synchrohizing . . .}
  50. input 2 Username:
  51. if success goto HAVEUSERNAME
  52. goto LOOP1
  53. :HAVEUSERNAME
  54. message {Logging in . . . }
  55. output \%a\13        ; send username
  56. output \%p\13        ; send password
  57.  
  58. Example 2.
  59.  
  60. A DATATRIEVE procedure VALIDATION is started on the VAX.  The
  61. KERMIT script is to wait until the procedure responds with a "Done".
  62. The following code worked on a 175 Megahertz processor, but would 
  63. not work on a faster processor.
  64.  
  65.  . . .
  66. message {Analyzing claims . . .}
  67. clear
  68. output dtr execute validation\13
  69. set count 180        ; 180 * 5 second / 60 second/min = 15 minutes
  70. :Y1
  71. message {Synchronizing with host during validation . . .}
  72. input 5 Done
  73. if success goto CONT3
  74. reinput 0 CARRIER
  75. if success goto ENDVAL
  76. if count goto Y1
  77. :ENDVAL
  78. fatalerror {Verification never completed.}
  79. :CONT3
  80.  . . .
  81.  
  82. On a faster processor, the script file would "hang" on the line
  83. "input 5 Done".  A reboot of the system was required to clear the
  84. conditions.  To get the code to work on a faster processor, adding 
  85. some commented likes caused the code to start working.
  86.  . . .
  87. message {Analyzing claims . . .}
  88. clear
  89. output dtr execute validation\13
  90. set count 180        ; 180 * 5 second / 60 second/min = 15 minutes
  91. :Y1
  92. message {Synchronizing with host during validation . . .}
  93. ;pause 1
  94. ;echo 1
  95. ;pause 1
  96. ;echo 2
  97. ;pause 1
  98. ;echo 3
  99. ;pause 1
  100. ;echo 4
  101. ;pause 1
  102. ;echo 5\13
  103. input 5 Done
  104. if success goto CONT3
  105. reinput 0 CARRIER
  106. if success goto ENDVAL
  107. if count goto Y1
  108. :ENDVAL
  109. fatalerror {Verification never completed.}
  110. :CONT3
  111.  . . .
  112.  
  113.  
  114. Questions:
  115.  
  116.  1. How does one write K95 scripts which are independent of
  117.     the speed of PC?
  118.  2. Which script commands are most likely to encounter timing or
  119.     processor speed problems?
  120.  3. Are these kinds of problems unique to the hardware I am using?
  121.     to K95? or to KERMIT scripts in general?